<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="description" content=""/>
	<meta name="keywords" content=""/>
	<title>窝巢网 - 会员登录</title>
	<style>
		body{/*
			margin:0 auto;
			vertical-align:middle;*/
		}
		.tip{border-bottom:1px solid #ccc;padding:20px;margin-bottom:20px;}
		.login {
			position:absolute;
			top:35%;left:35%;
			border: 1px solid #999999;
		    display: block;
		    height: 240px;
		    width: 350px;
		}
		.login ul {
		}
		.login ul li {
		    color: #626E8A;
		    display: block;
		    list-style-type: none;
		    margin-bottom: 12px;
		}
		#captcha{}
	</style>
</head>
<body>
	<div class="login">
		<div class="tip">
		<?php if(isset($message) && $message){
				echo '<font color=red>',$message,'</font>';
			}else{
				echo '欢迎登录窝巢网^o^';
			}
		?>
		</div>
		<form method="post" action="<?php echo site_url('login/dologin');?>">
			<ul>
				<li>用户名：<input type="text" name="login[username]"/></li>
				<li>密	&nbsp;码：<input type="password" name="login[password]"/></li>
				<li>验证码：<input type="text" size="4" name="login[captcha]"/><img id="captcha" src="<?php echo site_url('captcha/mixed'),'?',time();?>"/><a href="javascript:refresh();">看不清</a></li>
				<li><input type="submit" value="登录"/></li>
			</ul>
		</form>
		<script>
			function refresh(){
				var captcha = document.getElementById('captcha');
				captcha.src = captcha.src.substring(0,captcha.src.indexOf('?')+1)+new Date().getTime(); 
			}
		</script>
	</div>
</body>
</html>